package cn.etg.observer_java;

public class ObserverApp {
    public static void main(String[] args) {
        SubjectFor3d subjectFor3d = new SubjectFor3d();
        SubjectForSSQ subjectForSSQ = new SubjectForSSQ();

        ObserverOne observerOne = new ObserverOne();
        observerOne.registerSubject(subjectFor3d);
        observerOne.registerSubject(subjectForSSQ);

        subjectFor3d.setMsg("3D试机号是110");
        subjectForSSQ.setMsg("双色球号码：12,13,31,5,4,3 15");
    }
}
